package com.taoym.voucher.common.enums;

import lombok.Getter;

/**
 * @coder taoym
 * @datetime 2021/8/26 10:45
 * @desc
 */
@Getter
public enum ClickTypeEnum {

    // 饿了么
    ELM_WM(3, "饿了么外卖"),
    ELM_CY(4, "饿了么餐饮"),
    ELM_SX(5, "饿了么生鲜"),
    // 美团
    MT_WM(1, "美团外卖"),
    MT_SG(2, "美团闪购"),
    MT_TJ(27, "周末特价"),
    MT_JD(28, "美团酒店"),
    MT_CX(29, "优选1.99元"),
    MT_YX(1000, "美团优选"),
    MT_TD(1001, "吃喝玩乐"),

    // 拼多多
    PDD_HF(6, "话费充值"),
    PDD_HCP(11, "火车票"),
    PDD_XSMS(12, "限时秒杀"),
    PDD_BYBT(13, "百亿补贴"),
    PDD_LQZX(14, "领券中心"),
    // 聚合
    KFC(16, "肯德基"),
    CINEMA(17, "电影票"),
    HUA_FEI(18, "话费"),
    MCDONALD(26, "麦当劳"),

    DS(1002, "电商");

    private final Integer type;
    private final String actName;

    ClickTypeEnum(Integer type, String actName) {
        this.type = type;
        this.actName = actName;
    }

    public static String getActName(Integer type) {
        for (ClickTypeEnum value : values()) {
            if (type.equals(value.getType())) {
                return value.getActName();
            }
        }
        return null;
    }
}
